package chef.myapplication.model;

import javafx.scene.control.Button;
import javafx.scene.image.ImageView;


public class MyButton extends Button {
    public MyButton(String text, ImageView imageView, double width) {
        super(text);
        imageView.setFitWidth(width);
        imageView.setPreserveRatio(true);
        setGraphic(imageView);
        setGraphicTextGap(2.0);
        setStyle("-fx-background-color: transparent");
    }
    public MyButton(ImageView imageView, double width) {
        this("",imageView,width);
    }
    public MyButton(String text){
        super(text);
    }
}
